namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class BlogCultureMap : ClassMap<BlogCultureDataModel>
    {
        #region Constructors and Destructors

        public BlogCultureMap()
        {
            this.Table("BlogCulture");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");
            this.Map(x => x.BlogId).Column("BlogId");
            //this.References(x => x.Culture).Columns("CultureCode");
            this.Map(x => x.CultureCode, "CultureCode");
            this.Map(x => x.LastModified).Not.Nullable().Column("LastModified");
            this.Map(x => x.Title).Column("Title");
            this.Map(x => x.Text).Column("Text");
        }

        #endregion
    }
}